package tmall.secondkill.controller;

import org.springframework.web.bind.annotation.*;
import tmall.framework.Response;
import tmall.secondkill.entity.Commodity;

@RestController
@RequestMapping("/tmall/secondkill/v1/order/")
public class OrderController {

    @GetMapping("{orderId}")
    public Response get(@PathVariable(name = "orderId") long orderId) {
        return null;
    }

    @PostMapping
    public Response post(@RequestBody Commodity commodity) {
        return null;
    }

    @DeleteMapping("{orderId}")
    public Response delete(@PathVariable(name = "orderId") long orderId) {
        return null;
    }

    @PutMapping
    public Response put(@RequestBody Commodity commodity) {
        return null;
    }
}
